<?php include "fonctions.php";

  $postfield = array();
  $skill = array();
  
  foreach($_POST['skill'] as $s) {
    if ($s != "-1")
      postCollabIdSkill($_POST['id'], $s);
  }
  
  postFieldsAddLastName($postFields, $_POST['name']);

  postFieldsAddFirstName($postFields, $_POST['firstName']);

  postFieldsAddAddress($postFields, $_POST['address']);

  postFieldsAddPhone($postFields, $_POST['phone']);

  postFieldsAddEmail($postFields, $_POST['email']);

  postFieldsAddFunction($postFields, $_POST['function']);

  $res = putCollabIdProfile($postFields['profile'], $_POST['id']);
  
  if($res == true) {
    echo "Votre collaborateur a bien &eacute;t&eacute; modifi&eacute; !";
  }
?>

<p><a href="list_collaborators.php"> Retour a la liste des collaborateurs</a><br/>
<a href="index.php"> Retour au menu</a><br/></p>

